package com.taotao.web;

import com.taotao.TaotaoResult;
import com.taotao.service.TbItemCatService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author evader
 * @date 2020-09-28 11:55
 */
@RestController

@RequestMapping("/itemcat")
public class ItemCatController {
    @Autowired
    private TbItemCatService tbItemCatService;

    @CrossOrigin
    @RequestMapping("/all")
    public TaotaoResult getItemCat() {
        TaotaoResult taotaoResult = tbItemCatService.getItemCat();
        return taotaoResult;
    }
}
